package com.apache.match.queue;

public class Keyword implements Comparable {

    protected long priceUnit;

    protected long timestamp;

    protected String id;

    public Keyword() {

    }

    public Keyword(long priceUnit, long timestamp, String id) {
        this.priceUnit = priceUnit;
        this.timestamp = timestamp;
        this.id = id;
    }

    public long getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(long priceUnit) {
        this.priceUnit = priceUnit;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    // 重载toString方法定义输出
    public String toString() {
        return "priceUnit:" + priceUnit + ", timestamp:" + timestamp + ", id:" + id;
    }

    public int compareTo(Object o) {
        // TODO Auto-generated method stub
        return 0;
    }
}
